Send events to the Algolia Insights API with Segment.
clickAnalytics
with your searches.Sign into Segment app
Select source
Select destination
Sign into Algolia
Add your credentials
clickAnalytics
queryID
parameter for a search,
set the clickAnalytics
parameter to true
:
analytics.identify()
function to identify users,
use the same identifier for Algolia by passing it as the userToken
parameter with your search.
For example, if you want to use Personalization:
Property | Type | Required? |
---|---|---|
index | string | Yes |
eventType | value: 'view' , 'click' , or 'conversion' | Yes |
eventSubtype | value: 'addToCart' or 'purchase' (only applicable to 'conversion' events) | No |
queryID | string | No |
objectIDs | string[] or objectID : string | No |
positions | number[] or position : number | No |
filters | Array<{ type: string; value: string; }> or string[] (${type}:${value} —for example, brand:apple ) | No |
objectData | See the Insights API reference for the objectData parameter (only applicable to 'addToCart' and 'purchase' events) | No |
queryID
shows a Delivery Issue.
To check if Algolia receives your events correctly,
go to the Events Debugger in the Algolia dashboard.
For more information, see Validate your events.